package com.zmn.plat.dubbo.constant;

import com.zmn.plat.common.dictionary.DistributeWayEnum;

import java.io.Serializable;

/**
 * 类描述：派单参数接口常量定义
 *
 * @author mujunlin
 * @since 2020/03/04 11:33 上午
 */
public class DistributeConsts implements Serializable {

    /**
     * 配置状态关闭
     */
    public static final Integer STATUS_FORBIDDEN = 1;

    /**
     * 配置状态开启
     */
    public static final Integer STATUS_NORMOL = 2;

    /**
     * 新单自动派单：关闭自动派单
     */
    public static final Integer AUTO_STATUS_FORBIDDEN = 1;

    /**
     * 新单自动派单：推荐自动派单
     */
    public static final Integer AUTO_STATUS_RECOMMEND = 2;

    /**
     * 新单自动派单：指定工程师自动派单
     */
    public static final Integer AUTO_STATUS_ENGINEER = 3;

    /**
     * 新单自动派单：公平自动派
     */
    public static final Integer AUTO_STATUS_FAIR = 4;

    /**
     * 返修自动派：关闭
     */
    public static final Integer REWORK_STATUS_FORBIDDEN = 1;

    /**
     * 返修自动派：源工程师自动派
     */
    public static final Integer REWORK_STATUS_ENGINEER = 2;


    /**
     * 派单方式 -- 平台直派
     */
    public static final Integer DISTRIBUTE_PLAT_DIRECTLY = DistributeWayEnum.DISTRIBUTE_WAY_PLAT.getCode();

    /**
     * 派单方式 -- 服务商派单
     */
    public static final Integer DISTRIBUTE_SERVICE_PROVIDER = DistributeWayEnum.DISTRIBUTE_WAY_SP.getCode();

}
